﻿<%@ Page Title="Content Search" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Steve.UI.Models.SearchModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<form action="/Content/Search" method="post">
<%: Html.EditorFor(m => m.Query) %>
<%: Html.DropDownListFor(m => m.SearchType, Model.SearchType.ToSelectList()) %>
<input type="submit" value="Search" />
</form>

<% 
    if (!string.IsNullOrWhiteSpace(Model.Query))
    {
        Html.RenderAction("SearchResults", "Content", new { model = Model });
    }       
%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="StyleContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PageHeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="BreadCrumbContent" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
